<div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
    <div class="am-offcanvas-bar admin-offcanvas-bar">
        <ul class="am-list admin-sidebar-list">

            <li>
                <a href="/admin" class="{{ $parent_menu == '' ? 'am-active' : ''}}"><span class="am-icon-home"></span> 后台首页</a>
            </li>

            @foreach($menus as $menu)
                <li class="admin-parent">
                    <a class="am-cf" data-am-collapse="{target: '#collapse-{{$menu->id}}'}">
                        <span class="{{$menu->icon}}"></span>
                        {{$menu->label}} <span class="am-icon-angle-right am-fr am-margin-right"></span>
                    </a>
                    <ul class="am-list am-collapse admin-sidebar-sub {{$parent_menu == $menu->name ? 'am-in' : ''}}" id="collapse-{{$menu->id}}">
                        @foreach($menu->children as $children)
                            <li>
                                @if(Route::has($children->name))
                                    <a href="{{route($children->name)}}" class="{{$children_menu == $children->name ? 'am-active' : ''}}">
                                        <span class="{{$children->icon}}"></span> {{$children->label}}
                                    </a>
                                @else
                                    <a href="javascript:;" class="error_permission">
                                        <span class="am-icon-close"></span> 权限定义错误
                                    </a>
                                @endif
                            </li>
                        @endforeach
                    </ul>
                </li>
            @endforeach
        </ul>

        <div class="am-panel am-panel-default admin-sidebar-panel">
            <div class="am-panel-bd">
                <p><span class="am-icon-bookmark"></span> 思考</p>
                <p>{{$bibel['cn']}}</p>
            </div>
        </div>
        <div class="am-panel am-panel-default admin-sidebar-panel">
            <div class="am-panel-bd">
                <p><span class="am-icon-tag"></span> Listen Bible</p>
                <p>{{$bibel['en']}}</p>
            </div>
        </div>
    </div>
</div>




{{--<div class="admin-sidebar am-offcanvas" id="admin-offcanvas">--}}
    {{--<div class="am-offcanvas-bar admin-offcanvas-bar">--}}
        {{--<ul class="am-list admin-sidebar-list">--}}
            {{--<li><a href="/admin" class="{{$_index or ''}}"><span class="am-icon-home"></span> 首页</a></li>--}}
            {{--<li class="admin-parent">--}}
                {{--<a class="am-cf" data-am-collapse="{target: '#collapse-shop'}"><span class="am-icon-file"></span>--}}
                    {{--商城管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>--}}
                {{--<ul class="am-list am-collapse admin-sidebar-sub {{$_shop or ''}}" id="collapse-shop">--}}
                    {{--<li><a href="{{Route('shop.product.index')}}" class="{{$_product or ''}}"><span--}}
                                    {{--class="am-icon-th-list"></span> 商品列表--}}
                            {{--<span class="am-badge am-badge-secondary am-margin-right am-fr">{{App\Models\Shop\Product::count()}}</span></a>--}}
                    {{--</li>--}}
                    {{--<li><a href="{{route('shop.category.index')}}" class="{{$_category or ''}}"><span--}}
                                    {{--class="am-icon-th"></span> 商品分类</a></li>--}}
                    {{--<li><a href="{{Route('shop.brand.index')}}" class="{{$_brand or ''}}"><span--}}
                                    {{--class="am-icon-apple"></span> 商品品牌--}}
                            {{--<span class="am-badge am-badge-warning am-margin-right am-fr">{{App\Models\Shop\Brand::count()}}</span></a>--}}
                    {{--</li>--}}
                    {{--<li><a href="{{route('shop.customer.index')}}" class="{{$_customer or ''}}"><span--}}
                                    {{--class="am-icon-user"></span> 会员管理</a></li>--}}
                    {{--<li><a href="{{route('shop.express.index')}}" class="{{$_express or ''}}"><span--}}
                                    {{--class="am-icon-car"></span> 物流运费</a></li>--}}
                    {{--<li><a href="{{Route('shop.product.recycle')}}" class="{{$_recycle or ''}}"><span--}}
                                    {{--class="am-icon-recycle"></span> 商品回收--}}
                            {{--<span class="am-badge am-badge-warning am-margin-right am-fr">{{App\Models\Shop\Product::onlyTrashed()->count()}}</span></a>--}}
                    {{--</li>--}}
                {{--</ul>--}}
            {{--</li>--}}

            {{--<li class="admin-parent">--}}
                {{--<a class="am-cf" data-am-collapse="{target: '#collapse-crm'}"><span class="am-icon-home"></span>--}}
                    {{--CRM管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>--}}
                {{--<ul class="am-list am-collapse admin-sidebar-sub {{$_crm or ''}}" id="collapse-crm">--}}
                    {{--<li><a href="{{Route('crm.article.index')}}" class="{{$_article or ''}}"><span--}}
                                    {{--class="am-icon-list"></span> 文章管理--}}
                            {{--<span class="am-badge am-badge-secondary am-margin-right am-fr"></span></a></li>--}}
                    {{--<li><a href="{{Route('crm.category.index')}}" class="{{$_cat or ''}}"><span--}}
                                    {{--class="am-icon-columns"></span> 栏目管理--}}
                            {{--<span class="am-badge am-badge-secondary am-margin-right am-fr"></span></a></li>--}}
                    {{--<li><a href="{{Route('crm.vue_links')}}" class="{{$_link or ''}}"><span class="am-icon-link"></span> 友情链接--}}
                            {{--<span class="am-badge am-badge-secondary am-margin-right am-fr"></span></a></li>--}}
                    {{--<li><a href="" class="{{$_trash or ''}}"><span class="am-icon-trash"></span> 栏目回收站--}}
                            {{--<span class="am-badge am-badge-secondary am-margin-right am-fr"></span></a></li>--}}
                {{--</ul>--}}
            {{--</li>--}}

            {{--<li class="admin-parent">--}}
                {{--<a class="am-cf" data-am-collapse="{target: '#collapse-ads'}"><span class="am-icon-adjust"></span>--}}
                    {{--广告模块 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>--}}
                {{--<ul class="am-list am-collapse admin-sidebar-sub {{$_ads or ''}}" id="collapse-ads">--}}
                    {{--<li><a href="{{Route('ad.advert.index')}}" class="{{$_advert or ''}}"><span--}}
                                    {{--class="am-icon-th-list"></span> 广告列表--}}
                            {{--<span class="am-badge am-badge-secondary am-margin-right am-fr">{{App\Models\Ad\Advert::count()}}</span></a>--}}
                    {{--</li>--}}
                    {{--<li><a href="{{Route('ad.category.index')}}" class="{{$_cate or ''}}"><span--}}
                                    {{--class="am-icon-th"></span> 广告分类</a></li>--}}
                {{--</ul>--}}
            {{--</li>--}}

            {{--<li class="admin-parent">--}}
                {{--<a class="am-cf" data-am-collapse="{target: '#collapse-wechat'}"><span class="am-icon-wechat"></span>--}}
                    {{--微信管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>--}}
                {{--<ul class="am-list am-collapse admin-sidebar-sub {{$_wechat or ''}}" id="collapse-wechat">--}}
                    {{--<li><a href="{{Route('wechat.menu.index')}}" class="{{$_menu or ''}}"><span--}}
                                    {{--class="am-icon-th-list"></span> 微信自定义菜单--}}
                            {{--<span class="am-badge am-badge-secondary am-margin-right am-fr"></span></a></li>--}}
                    {{--<li><a href="{{Route('wechat.draw.index')}}" class="{{$_draw or ''}}"><span--}}
                                    {{--class="am-icon-trophy"></span> 抽奖管理--}}
                            {{--<span class="am-badge am-badge-secondary am-margin-right am-fr"></span></a></li>--}}
                    {{--<li><a href="{{Route('wechat.prize.index')}}" class="{{$_prize or ''}}"><span--}}
                                    {{--class="am-icon-child"></span> 中奖名单--}}
                            {{--<span class="am-badge am-badge-secondary am-margin-right am-fr"></span></a></li>--}}
                {{--</ul>--}}
            {{--</li>--}}

            {{--<li class="admin-parent">--}}
                {{--<a class="am-cf" data-am-collapse="{target: '#collapse-system'}"><span class="am-icon-gear"></span>--}}
                    {{--系统管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>--}}
                {{--<ul class="am-list am-collapse admin-sidebar-sub {{$_system or ''}}" id="collapse-system">--}}
                    {{--<li><a href="{{Route('system.user.index')}}" class="{{$_user or ''}}"><span class="am-icon-user"></span> 用户管理--}}
                            {{--<span class="am-badge am-badge-secondary am-margin-right am-fr"></span></a></li>--}}
                    {{--<li><a href="{{Route('system.role.index')}}" class="{{$_role or ''}}"><span class="am-icon-group"></span> 用户组管理--}}
                            {{--<span class="am-badge am-badge-secondary am-margin-right am-fr"></span></a></li>--}}
                    {{--<li><a href="{{Route('system.permission.index')}}" class="{{$_permission or ''}}"><span class="am-icon-lock"></span> 菜单与权限--}}
                            {{--<span class="am-badge am-badge-secondary am-margin-right am-fr"></span></a></li>--}}
                    {{--<li><a href="{{Route('system.config.index')}}" class="{{$_config or ''}}"><span--}}
                                    {{--class="am-icon-cog am-icon-spin"></span> 系统设置--}}
                            {{--<span class="am-badge am-badge-secondary am-margin-right am-fr"></span></a></li>--}}
                    {{--<li><a href="{{Route('system.cache.index')}}" class="{{$_cache or ''}}"><span--}}
                                    {{--class="am-icon-spinner am-icon-spin"></span> 清除缓存--}}
                            {{--<span class="am-badge am-badge-secondary am-margin-right am-fr"></span></a></li>--}}
                    {{--<li><a href="\logs" class="{{$_logs or ''}}"><span class="am-icon-calendar"></span> 系统日志</a></li>--}}
                {{--</ul>--}}
            {{--</li>--}}


        {{--</ul>--}}

        {{--<div class="am-panel am-panel-default admin-sidebar-panel">--}}
            {{--<div class="am-panel-bd">--}}
                {{--<p><span class="am-icon-bookmark"></span> 思考</p>--}}
                {{--<p>{{$bibel['cn']}}</p>--}}
            {{--</div>--}}
        {{--</div>--}}

        {{--<div class="am-panel am-panel-default admin-sidebar-panel">--}}
            {{--<div class="am-panel-bd">--}}
                {{--<p><span class="am-icon-tag"></span> Listen</p>--}}
                {{--<p>{{$bibel['cn']}}</p>--}}
            {{--</div>--}}
        {{--</div>--}}
    {{--</div>--}}
{{--</div>--}}
